package com.sunma.assetsin.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sunma.common.annotation.Excel;
import com.sunma.common.core.domain.BaseEntity;

/**
 * 资产入库对象 assets_in
 * 
 * @author sunma
 * @date 2024-07-10
 */
public class AssetsIn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 资产ID */
    @Excel(name = "资产ID")
    private Long assetsId;

    /** 资产型号 */
    @Excel(name = "资产型号")
    private String model;

    /** 操作人ID */
    @Excel(name = "操作人ID")
    private Long userId;

    /** 入库数量 */
    @Excel(name = "入库数量")
    private Long num;

    /** 入库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private String status;

    /** 备注 */
    @Excel(name = "备注")
    private String comment;

    /** 操作人 */
    @Excel(name = "操作人")
    private String userName;
    /** 资产名称 */
    @Excel(name = "资产名称")
    private String assetsName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAssetsName() {
        return assetsName;
    }

    public void setAssetsName(String assetsName) {
        this.assetsName = assetsName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAssetsId(Long assetsId) 
    {
        this.assetsId = assetsId;
    }

    public Long getAssetsId() 
    {
        return assetsId;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("assetsId", getAssetsId())
            .append("assetsName", getAssetsName())
            .append("userName", getUserName())
            .append("model", getModel())
            .append("userId", getUserId())
            .append("num", getNum())
            .append("date", getDate())
            .append("status", getStatus())
            .append("comment", getComment())
            .toString();
    }
}
